{% extends 'layouts/base-auth.html' %}
{% load static i18n %}

{% block content %}
<style>
  body {
    background: url("{% static 'assets/img/l2/bgs/bg.png' %}") no-repeat center center fixed;
    background-size: cover;
  }

  .success-panel {
    background-color: rgba(15, 15, 15, 0.92);
    color: #f0e6d2;
    border-radius: 1rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    border: 1px solid #e0c36b;
    text-align: center;
  }

  .success-panel h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #e0c36b;
    text-shadow: 0 0 10px rgba(255, 215, 100, 0.4);
  }

  .btn-golden {
    background: linear-gradient(to right, #b89b56, #d5c170);
    color: #000;
    font-weight: bold;
    text-shadow: 0 0 5px #fff8dc;
    border: none;
  }

  .btn-golden:hover {
    background: linear-gradient(to right, #d5c170, #b89b56);
    color: #000;
  }

  .btn-wrapper {
    margin-top: 1.5rem;
  }
</style>

<section class="vh-100 d-flex align-items-center justify-content-center">
  <div class="container">
    <div class="row justify-content-center">
      <div class="col-md-6 col-lg-5">
        <div class="p-5 success-panel">
          <h2 class="mb-4">{% trans "Senha redefinida" %}</h2>
          <p class="lead mb-4">{% trans "Sua senha foi redefinida com sucesso. Faça login novamente para continuar sua jornada." %}</p>
          <div class="btn-wrapper">
            <a href="{% url 'login' %}" class="btn btn-golden">
              <svg class="icon icon-xs me-1" fill="currentColor" viewBox="0 0 20 20"
                xmlns="http://www.w3.org/2000/svg">
                <path fill-rule="evenodd"
                  d="M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z"
                  clip-rule="evenodd"></path>
              </svg>
              {% trans "Voltar para o login" %}
            </a>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
{% endblock %}
